 var no=1;
webix.ready(function(){
 
	var my_table={
	        view:"datatable",
	        id:"mydatatable",     
	        columns:[
	          {id:"terminal_id",header:"终端编号",fillspace:true},
	          {id:"clip_id",header:"弹夹编号",fillspace:true},
	          {id:"customer_specs_no",header:"客户物料编号",fillspace:true,editor:"text"},
	          {id:"simple_specs_cust",header:"规格简称",fillspace:true,editor:"text"},
	          {id:"long_specs_cust",header:"规格全称",fillspace:true,editor:"text"},
	          {id:"batch",header:"批次",fillspace:true,editor:"text"},
	          {id:"num",header:"数量 ",fillspace:true,editor:"text"},
	        ],
	        height:600,      
	        select:true,
	      };
    var body=new webix.ui({
        fullscreen:true,
        container:"body",
        type:"line",
        id:"mylayout",
        margin:10,
        rows:[
              	my_table
        ]//----rows结束----
    });//---webix.ui结束---- 
    var params = {};
    params.terminal_id = $("#terminal_id").val();
    postData("getTerminalInventoryByTerminalId", params,callback);

});

function callback(data){
  var text1=JSON.parse(data); 
  $$("mydatatable").define("data",text1);
  $$('mydatatable').refresh();

}
  
